package org.example.funtion;

public class Test01 {

    public static void main(String[] args) {
        //lambda写法
        Fun01 f01 = (a,b)-> a+b;
        Integer sum = f01.compute(1,2);
        System.out.println(sum);
        
        
        Fun01 f02 = (a,b)-> a*b;
        Integer  multiply = f02.compute(2,3);
        System.out.println(multiply);
    }
}
